<template>
  <Button type="primary" @click="handleOpen">打开Modal</Button>
</template>

<script setup lang="ts">
import { Button, Modal } from "leisure-lib";
import content from "./content2.vue";

const handleOpen = () => {
  Modal.open(content, { title: "新建数据" });
};
</script>

<style scoped></style>
